tests: Improve check for /proc/cmdline kargs
authorDan Nicholson <nicholson@endlessm.com>
Fri, 13 May 2016 19:53:01 +0000 (12:53 -0700)
committerAtomic Bot <atomic-devel@projectatomic.io>
Mon, 27 Jun 2016 20:20:21 +0000 (20:20 +0000)
commita94530111a31ff3784af293a6cd4da4c3c7bc34c
tree31d1017eeab9681ae3f8865eb9813299eabdc025
parent99a76c9b34a03cf6fc3727b0ecddad99633dc5b3
tests: Improve check for /proc/cmdline kargs

On some systems there may be no root= argument, so the tests for
appending /proc/cmdline arguments will fail. Instead, loop over each of
the arguments in the host's /proc/cmdline and test that they're in the
constructed config file. That will actually test if ostree added all of
the system's /proc/cmdline args correctly. The regex isn't perfect here,
but it's probably good enough for this test.

Closes: #372
Approved by: cgwalters
tests/test-admin-deploy-karg.sh
tests/test-admin-instutil-set-kargs.sh